import urllib2
from urllib import urlencode
import amara
import pprint

if __name__ == '__main__':

    post_vars = { 'title' : 'my article about this post',
                  'url' : 'http://ionrock.org/blog/notes',
                  'blog_name' : 'The IonBlog',
                  'excerpt' : 'Eric had an interesting blog over at localhost:8080 that was really good.'}
                
    req = urllib2.Request(
        url='http://localhost:8080/blog/2007/01/17/Reading_RFC_Specs/trackbacks',
        data=urlencode(post_vars)
    )
    resp = urllib2.urlopen(req)
    print resp.read()
        
